/*
 * LearningWordsApplication.java
 *
 * Copyright(c) 2010
 * Michael Kroez
 * kroez@studiorutton.de
 *
 * All rights reserved.
 *
 * $Id$
 * 
 */

package de.studiorutton.gerengdic;

import com.github.droidfu.DroidFuApplication;

import android.app.Application;
import de.studiorutton.config.ConfigProperties;
import de.studiorutton.tre.SimpleTre;

public class LearningWordsApplication extends DroidFuApplication {
	private final static String TAG = "learningwords";

	private static LearningWordsApplication instance = null;
	private static ConfigProperties config;
	private Prefs prefs;

	public LearningWordsApplication() {
		instance = this;
		SimpleTre.loadLib();

	}

	public void onCreate() {
		super.onCreate();
		config = new ConfigProperties(this);
		config.loadDefaultProperties();
		prefs = Prefs.getInstance();
		prefs.setPreferences();

	}

	public static LearningWordsApplication get() {
		return instance;
	}

	public static ConfigProperties getConfig() {
		return config;
	}
}
